package de.karlNet.sambamanager.ldapController.commands;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Controller;

import de.karlNet.sambamanager.ldapModel.LdapGroup;
import de.karlNet.sambamanager.ldapModel.LdapUser;

@Controller
@Scope(value = "session", proxyMode = ScopedProxyMode.TARGET_CLASS)
public class RemoveUserFromGroup extends BaseCommand {
	@Autowired
	private RemoveMembership removeMembership;
	public void removeUserFromGroupItself(LdapGroup group, LdapUser ldapUser) {
		this.removeMembership.removeNestableFromGroup(group, ldapUser);
	}
}
